package com.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ActivtyrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActivtyrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAtrnoIsNull() {
            addCriterion("atrno is null");
            return (Criteria) this;
        }

        public Criteria andAtrnoIsNotNull() {
            addCriterion("atrno is not null");
            return (Criteria) this;
        }

        public Criteria andAtrnoEqualTo(Integer value) {
            addCriterion("atrno =", value, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoNotEqualTo(Integer value) {
            addCriterion("atrno <>", value, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoGreaterThan(Integer value) {
            addCriterion("atrno >", value, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("atrno >=", value, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoLessThan(Integer value) {
            addCriterion("atrno <", value, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoLessThanOrEqualTo(Integer value) {
            addCriterion("atrno <=", value, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoIn(List<Integer> values) {
            addCriterion("atrno in", values, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoNotIn(List<Integer> values) {
            addCriterion("atrno not in", values, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoBetween(Integer value1, Integer value2) {
            addCriterion("atrno between", value1, value2, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtrnoNotBetween(Integer value1, Integer value2) {
            addCriterion("atrno not between", value1, value2, "atrno");
            return (Criteria) this;
        }

        public Criteria andAtnoIsNull() {
            addCriterion("atno is null");
            return (Criteria) this;
        }

        public Criteria andAtnoIsNotNull() {
            addCriterion("atno is not null");
            return (Criteria) this;
        }

        public Criteria andAtnoEqualTo(Integer value) {
            addCriterion("atno =", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotEqualTo(Integer value) {
            addCriterion("atno <>", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoGreaterThan(Integer value) {
            addCriterion("atno >", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("atno >=", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoLessThan(Integer value) {
            addCriterion("atno <", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoLessThanOrEqualTo(Integer value) {
            addCriterion("atno <=", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoIn(List<Integer> values) {
            addCriterion("atno in", values, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotIn(List<Integer> values) {
            addCriterion("atno not in", values, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoBetween(Integer value1, Integer value2) {
            addCriterion("atno between", value1, value2, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotBetween(Integer value1, Integer value2) {
            addCriterion("atno not between", value1, value2, "atno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(Integer value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(Integer value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(Integer value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(Integer value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(Integer value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<Integer> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<Integer> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(Integer value1, Integer value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(Integer value1, Integer value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAtrnameIsNull() {
            addCriterion("atrname is null");
            return (Criteria) this;
        }

        public Criteria andAtrnameIsNotNull() {
            addCriterion("atrname is not null");
            return (Criteria) this;
        }

        public Criteria andAtrnameEqualTo(String value) {
            addCriterion("atrname =", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameNotEqualTo(String value) {
            addCriterion("atrname <>", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameGreaterThan(String value) {
            addCriterion("atrname >", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameGreaterThanOrEqualTo(String value) {
            addCriterion("atrname >=", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameLessThan(String value) {
            addCriterion("atrname <", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameLessThanOrEqualTo(String value) {
            addCriterion("atrname <=", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameLike(String value) {
            addCriterion("atrname like", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameNotLike(String value) {
            addCriterion("atrname not like", value, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameIn(List<String> values) {
            addCriterion("atrname in", values, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameNotIn(List<String> values) {
            addCriterion("atrname not in", values, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameBetween(String value1, String value2) {
            addCriterion("atrname between", value1, value2, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrnameNotBetween(String value1, String value2) {
            addCriterion("atrname not between", value1, value2, "atrname");
            return (Criteria) this;
        }

        public Criteria andAtrbeginIsNull() {
            addCriterion("atrbegin is null");
            return (Criteria) this;
        }

        public Criteria andAtrbeginIsNotNull() {
            addCriterion("atrbegin is not null");
            return (Criteria) this;
        }

        public Criteria andAtrbeginEqualTo(Date value) {
            addCriterion("atrbegin =", value, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginNotEqualTo(Date value) {
            addCriterion("atrbegin <>", value, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginGreaterThan(Date value) {
            addCriterion("atrbegin >", value, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginGreaterThanOrEqualTo(Date value) {
            addCriterion("atrbegin >=", value, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginLessThan(Date value) {
            addCriterion("atrbegin <", value, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginLessThanOrEqualTo(Date value) {
            addCriterion("atrbegin <=", value, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginIn(List<Date> values) {
            addCriterion("atrbegin in", values, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginNotIn(List<Date> values) {
            addCriterion("atrbegin not in", values, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginBetween(Date value1, Date value2) {
            addCriterion("atrbegin between", value1, value2, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrbeginNotBetween(Date value1, Date value2) {
            addCriterion("atrbegin not between", value1, value2, "atrbegin");
            return (Criteria) this;
        }

        public Criteria andAtrendIsNull() {
            addCriterion("atrend is null");
            return (Criteria) this;
        }

        public Criteria andAtrendIsNotNull() {
            addCriterion("atrend is not null");
            return (Criteria) this;
        }

        public Criteria andAtrendEqualTo(Date value) {
            addCriterion("atrend =", value, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendNotEqualTo(Date value) {
            addCriterion("atrend <>", value, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendGreaterThan(Date value) {
            addCriterion("atrend >", value, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendGreaterThanOrEqualTo(Date value) {
            addCriterion("atrend >=", value, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendLessThan(Date value) {
            addCriterion("atrend <", value, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendLessThanOrEqualTo(Date value) {
            addCriterion("atrend <=", value, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendIn(List<Date> values) {
            addCriterion("atrend in", values, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendNotIn(List<Date> values) {
            addCriterion("atrend not in", values, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendBetween(Date value1, Date value2) {
            addCriterion("atrend between", value1, value2, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrendNotBetween(Date value1, Date value2) {
            addCriterion("atrend not between", value1, value2, "atrend");
            return (Criteria) this;
        }

        public Criteria andAtrstateIsNull() {
            addCriterion("atrstate is null");
            return (Criteria) this;
        }

        public Criteria andAtrstateIsNotNull() {
            addCriterion("atrstate is not null");
            return (Criteria) this;
        }

        public Criteria andAtrstateEqualTo(Integer value) {
            addCriterion("atrstate =", value, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateNotEqualTo(Integer value) {
            addCriterion("atrstate <>", value, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateGreaterThan(Integer value) {
            addCriterion("atrstate >", value, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("atrstate >=", value, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateLessThan(Integer value) {
            addCriterion("atrstate <", value, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateLessThanOrEqualTo(Integer value) {
            addCriterion("atrstate <=", value, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateIn(List<Integer> values) {
            addCriterion("atrstate in", values, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateNotIn(List<Integer> values) {
            addCriterion("atrstate not in", values, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateBetween(Integer value1, Integer value2) {
            addCriterion("atrstate between", value1, value2, "atrstate");
            return (Criteria) this;
        }

        public Criteria andAtrstateNotBetween(Integer value1, Integer value2) {
            addCriterion("atrstate not between", value1, value2, "atrstate");
            return (Criteria) this;
        }

        public Criteria andEndanoIsNull() {
            addCriterion("endano is null");
            return (Criteria) this;
        }

        public Criteria andEndanoIsNotNull() {
            addCriterion("endano is not null");
            return (Criteria) this;
        }

        public Criteria andEndanoEqualTo(Integer value) {
            addCriterion("endano =", value, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoNotEqualTo(Integer value) {
            addCriterion("endano <>", value, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoGreaterThan(Integer value) {
            addCriterion("endano >", value, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoGreaterThanOrEqualTo(Integer value) {
            addCriterion("endano >=", value, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoLessThan(Integer value) {
            addCriterion("endano <", value, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoLessThanOrEqualTo(Integer value) {
            addCriterion("endano <=", value, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoIn(List<Integer> values) {
            addCriterion("endano in", values, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoNotIn(List<Integer> values) {
            addCriterion("endano not in", values, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoBetween(Integer value1, Integer value2) {
            addCriterion("endano between", value1, value2, "endano");
            return (Criteria) this;
        }

        public Criteria andEndanoNotBetween(Integer value1, Integer value2) {
            addCriterion("endano not between", value1, value2, "endano");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}